types of defects in api testing